# coding=utf-8
def fun_arg_require(a, b):
    "a,b为必要参数"
    print a
    print b
    return


# 缺省参数从右往左
def fun_arg_default(a, b=2):
    "b为有默认值的参数"
    fun_arg_require(a, b)


def fun_arg_var_len(a, *b):
    "b为变长参数"
    fun_arg_default(a, b)


def fun_arg_var_dict(a, **b):
    "b为变长字典参数"
    fun_arg_default(a, b)


def fun_arg_var_dict2(**a):
    "a为变长字典参数"
    for key in a:
        print key + "=" + str(a[key])
    return
